@extends("layouts.common")
@section("content")
    <style>
        .panel .panel-heading .panel-actions {
            float: right;
            margin-right: -15px;
            height: 40px;
            font-size: 0;
            width: 30%;
            text-align: right;
        }
    </style>

    <div class="row">
        <div class="col-lg-12">
            <h3 class="page-header"><i class="fa fa-table"></i>我的收入</h3>
            <h3 class="page-header" style="    color: #000;">我的余额：{{Auth::user()->money}}</h3>
            <ol class="breadcrumb">
                <li><i class="fa fa-home"></i><a href="/welcome">Home</a></li>
                <li><i class="fa fa-table"></i>我的收入</li>
            </ol>
        </div>
    </div>

    <div class="row">

        <div class="col-lg-12">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h2><i class="fa fa-table red"></i><span class="break"></span><strong>收入列表</strong></h2>
                </div>
                <div class="panel-body">
                    <table class="table table-condensed">
                        <thead>
                        <tr>
                            <th>开仓时间</th>
                            <th>补仓时间</th>
                            <th>交易类型</th>
                            <th>交易佣金</th>
                            <th>隔夜费</th>
                            <th>操作收益</th>
                            <th>提成</th>
                            <th>下级代理提成</th>
                            <th>提成收入</th>
                            <th>创建时间</th>

                        </tr>
                        </thead>
                        <tbody>
                        @foreach($data as $val)
                        <tr>
                            <td>{{$val->starttime}}</td>
                            <td>{{$val->endtime}}</td>
                            <td>{{$val->item}}</td>
                            <td>{{$val->commission}}</td>
                            <td>{{$val->day_money}}</td>
                            <td>{{$val->profit}}</td>
                            <td>{{$val->percent}}%</td>
                            <td>{{$val->next}}%</td>
                            <td>{{$val->money}}</td>
                            <td>{{$val->created}}</td>

                        </tr>
                            @endforeach

                        </tbody>
                    </table>
                    @include("layouts.page",['paginator'=>$data])
                </div>
            </div>
        </div><!--/col-->
    </div>
    <style>
        td,th{
            text-align: center;
        }
    </style>
@endsection